package com.itstyle.seckill.common.designPattern.zuhe;

public class File extends Node {
    public File(String name) {
        super("【文件】"+name);
    }

    @Override
    protected void add(Node child) {
        System.out.println("不能添加子节点。");
    }
}
